﻿using HighPerformanceLog.V2;
using System.Configuration;
using System.Data;
using System.IO;
using System.Windows;
using ProcessBarDemo.UpdateFramework;
using test.ViewModels;
using test.converters;
using test.Views;

namespace test
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            var mainViewModel = new MainViewModel();
            Directory.CreateDirectory("log");
            HWLogger.SetLogFilepath(Path.Combine("log", $"{DateTime.Now:yyyy-MM-dd}.log"));
            mainViewModel.Autotostart();
            
        }

    }


}
